/* 重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Courier New', monospace;
}

body {
    background: #0a0a12;
    color: #00f3ff;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    position: relative;
}

/* 霓虹灯文字效果 */
.cyberpunk-text {
    text-shadow: 
        0 0 5px #00f3ff,
        0 0 10px #00f3ff,
        0 0 15px #00f3ff,
        0 0 20px #0077ff;
}

.cyberpunk-title {
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #ff00ff;
    text-shadow: 
        0 0 5px #ff00ff,
        0 0 10px #ff00ff,
        0 0 20px #ff00ff,
        0 0 40px #ff00ff;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* 主终端容器 */
.cyber-terminal {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #0a0a12 0%, #15152b 100%);
    position: relative;
    overflow: hidden;
}

/* 状态栏 */
.status-bar {
    background: rgba(5, 10, 25, 0.9);
    border-bottom: 1px solid #00f3ff;
    padding: 8px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
    z-index: 10;
    position: relative;
}

.system-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #00ff00;
    box-shadow: 0 0 10px #00ff00;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.time-display {
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 2px;
    color: #ff00ff;
}

/* 主容器 */
.main-container {
    display: flex;
    flex: 1;
    padding: 20px;
    gap: 20px;
    overflow: hidden;
}

/* 控制面板 */
.control-panel {
    width: 280px;
    background: rgba(10, 15, 40, 0.8);
    border: 1px solid #0077ff;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0, 119, 255, 0.4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.panel-header {
    background: rgba(0, 119, 255, 0.2);
    padding: 15px;
    border-bottom: 1px solid #0077ff;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #00f3ff;
}

.panel-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
}

/* 赛博朋克按钮 */
.cyber-btn {
    background: transparent;
    color: #00f3ff;
    border: 1px solid #00f3ff;
    padding: 12px 15px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.cyber-btn:hover {
    background: rgba(0, 243, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.5);
    transform: translateY(-2px);
}

.cyber-btn:active {
    transform: translateY(0);
}

.cyber-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 243, 255, 0.2), transparent);
    transition: left 0.5s;
}

.cyber-btn:hover::before {
    left: 100%;
}

/* 状态显示 */
.stats-display {
    background: rgba(0, 10, 30, 0.7);
    border: 1px solid #0077ff;
    border-radius: 3px;
    padding: 15px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 119, 255, 0.3);
}

.stat-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.stat-label {
    color: #a0a0ff;
}

.stat-value {
    color: #00ffaa;
    font-weight: bold;
}

.neon-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, #00f3ff, transparent);
    margin: 10px 0;
}

.system-status h3 {
    color: #ff00ff;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-bar.cyber-bg {
    height: 10px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #00f3ff;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.status-fill {
    height: 100%;
    background: linear-gradient(90deg, #00f3ff, #0077ff);
    box-shadow: 0 0 10px #00f3ff;
}

.status-text {
    color: #a0a0ff;
    font-size: 0.9rem;
}

/* 文件容器 */
.file-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgba(10, 15, 40, 0.6);
    border: 1px solid #ff00ff;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.3);
    overflow: hidden;
}

.file-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 0, 255, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-box {
    display: flex;
    align-items: center;
    background: rgba(0, 10, 30, 0.7);
    border: 1px solid #00f3ff;
    border-radius: 3px;
    padding: 10px 15px;
    width: 300px;
}

.search-box i {
    color: #00f3ff;
    margin-right: 10px;
}

.search-box input {
    background: transparent;
    border: none;
    color: #fff;
    outline: none;
    width: 100%;
    font-size: 1rem;
}

/* 文件列表 */
.file-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.file-list-header {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr 1fr 1fr 1fr;
    padding: 15px 20px;
    background: rgba(0, 10, 30, 0.8);
    border-bottom: 1px solid #0077ff;
    color: #a0a0ff;
    font-weight: bold;
}

.header-cell {
    display: flex;
    align-items: center;
}

.name-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

#select-all {
    width: 16px;
    height: 16px;
    accent-color: #00f3ff;
}

.file-list-body {
    flex: 1;
    overflow-y: auto;
    padding: 5px;
}

.file-item {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr 1fr 1fr 1fr;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(0, 119, 255, 0.2);
    align-items: center;
    transition: all 0.2s;
}

.file-item:hover {
    background: rgba(0, 119, 255, 0.1);
}

.file-item.selected {
    background: rgba(0, 243, 255, 0.1);
    border-left: 3px solid #00f3ff;
}

.file-checkbox {
    width: 16px;
    height: 16px;
    accent-color: #00f3ff;
}

.file-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-name {
    display: flex;
    align-items: center;
    color: #fff;
}

.file-type {
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: bold;
    text-align: center;
}

.file-type.document { background: rgba(0, 119, 255, 0.2); color: #00f3ff; border: 1px solid #00f3ff; }
.file-type.image { background: rgba(255, 0, 255, 0.2); color: #ff00ff; border: 1px solid #ff00ff; }
.file-type.video { background: rgba(255, 100, 0, 0.2); color: #ff6400; border: 1px solid #ff6400; }
.file-type.archive { background: rgba(0, 255, 100, 0.2); color: #00ff64; border: 1px solid #00ff64; }
.file-type.code { background: rgba(255, 255, 0, 0.2); color: #ffff00; border: 1px solid #ffff00; }
.file-type.executable { background: rgba(255, 0, 0, 0.2); color: #ff0000; border: 1px solid #ff0000; }

.action-buttons {
    display: flex;
    gap: 8px;
}

.btn-restore, .btn-delete {
    padding: 5px 12px;
    border-radius: 2px;
    font-size: 0.8rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-restore {
    background: rgba(0, 255, 100, 0.1);
    color: #00ff64;
    border: 1px solid #00ff64;
}

.btn-restore:hover {
    background: rgba(0, 255, 100, 0.3);
    box-shadow: 0 0 8px rgba(0, 255, 100, 0.5);
}

.btn-delete {
    background: rgba(255, 0, 0, 0.1);
    color: #ff0000;
    border: 1px solid #ff0000;
}

.btn-delete:hover {
    background: rgba(255, 0, 0, 0.3);
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.5);
}

/* 底部信息栏 */
.footer-info {
    padding: 15px 20px;
    border-top: 1px solid rgba(0, 119, 255, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 10, 30, 0.8);
}

.selected-info {
    color: #00ffaa;
    font-weight: bold;
}

.hint {
    color: #ff9900;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 对话框 */
.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    display: none;
}

.cyber-dialog {
    width: 500px;
    background: linear-gradient(135deg, #0a0a12 0%, #15152b 100%);
    border: 1px solid #ff00ff;
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.7);
    border-radius: 5px;
    overflow: hidden;
}

.dialog-header {
    background: rgba(255, 0, 255, 0.1);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #ff00ff;
}

.dialog-header h3 {
    color: #ff00ff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-dialog {
    background: transparent;
    border: none;
    color: #ff00ff;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
}

.close-dialog:hover {
    color: #fff;
}

.dialog-body {
    padding: 30px;
    color: #a0a0ff;
    line-height: 1.6;
}

.error-code {
    color: #ff0000;
    font-family: monospace;
    font-size: 1.1rem;
    margin: 15px 0;
    padding: 10px;
    background: rgba(255, 0, 0, 0.1);
    border-left: 3px solid #ff0000;
}

.error-message {
    color: #ff9900;
    font-style: italic;
}

.dialog-footer {
    padding: 20px;
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid rgba(255, 0, 255, 0.3);
}

/* 赛博朋克特效 */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        transparent 50%,
        rgba(0, 243, 255, 0.03) 50%
    );
    background-size: 100% 4px;
    z-index: 1;
    animation: scanline 10s linear infinite;
}

@keyframes scanline {
    0% { background-position: 0 0; }
    100% { background-position: 0 100%; }
}

.glitch-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    background: transparent;
    animation: glitch 10s infinite;
}

@keyframes glitch {
    0%, 100% { opacity: 0; }
    97% { opacity: 0; }
    98% { 
        opacity: 0.1;
        transform: translateX(-5px);
        background: rgba(255, 0, 255, 0.1);
    }
    99% { 
        opacity: 0.1;
        transform: translateX(5px);
        background: rgba(0, 243, 255, 0.1);
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 10, 30, 0.5);
}

::-webkit-scrollbar-thumb {
    background: #0077ff;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00f3ff;
    box-shadow: 0 0 10px #00f3ff;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .file-list-header, .file-item {
        grid-template-columns: 2fr 1.5fr 1fr 1fr 1fr 0.8fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
}